#ifndef Result_H
#define Result_H

#include "AssetData.h"
#include "Attribute.h"
#include "ResultAttribute.h"
#include "IResult.h"

namespace XpsAssets
{

class Result : public AssetData, public virtual IResult
{
	QString	m_Name;
	QString	m_Desc;
	QString	m_MediaPath;
	QMap<int, ResultAttribute*>	m_Attributes;

public:
	Result() : AssetData(RESULT) {};
	void setName(QString name)			{ m_Name = name; };
	QString	name()		{ return m_Name; };
	void setDesc(QString desc)			{ m_Desc = desc; };
	QString	desc()		{ return m_Desc; };
	void setMediaPath(QString path)	{ m_MediaPath = path; };
	QString	mediapath()	{ return m_MediaPath; };
	QString	toString() { return QString("%1").arg(name()); };
	QMap<int, ResultAttribute*>* attributes() { return &m_Attributes; };

	ResultAttribute* attribute(int id)
	{
		return m_Attributes[id];
	}
};

}

#endif